package com.qijia.common.dao.impl;


import org.springframework.context.ApplicationContext;
import com.qijia.common.dao.RoleResourceDAO;
import com.qijia.common.domain.RoleResource;

/**
 * A data access object (DAO) providing persistence and search support for
 * CommonRoleResource entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see com.qijia.common.domain.RoleResource
 * @author MyEclipse Persistence Tools
 */
public class RoleResourceDAOImpl extends JpaDaoSupportImpl<RoleResource> implements
		RoleResourceDAO {
	
	public static RoleResourceDAO getFromApplicationContext(
			ApplicationContext ctx) {
		return (RoleResourceDAO) ctx.getBean("RoleResourceDAO");
	}
}